# {{ ansible_managed }}
127.0.0.1   localhost.localdomain localhost
::1         localhost6.localdomain6 localhost6

{{API_VIP}} controller

{% for item in groups['host'] %}
{{ hostvars[item]['ansible_default_ipv4']['address'] }} {{ hostvars[item]['ansible_fqdn']}} 
{% endfor %}

